﻿using System.Collections;

namespace IntoStationRepair.PLC
{
    public class CommunicationModel
    {
        public BitArray ShiftButtons = new BitArray(16);
        public BitArray StepTips = new BitArray(64);
        public BitArray Prompt = new BitArray(32);
        public BitArray Warning = new BitArray(32);
        public BitArray Alarm = new BitArray(128);
        public BitArray State = new BitArray(7);
        public short[] Shorts = new short[2];
        public float[] Floats = new float[7];
        public int ScanCode;
        //Mes
        public int DevNum;
        public int Result;
        public DevData[] Devs = new DevData[16];
        public int CollectFlag;
    }

    public class DevData
    {
        public byte Type;
        public float[] Datas = new float[8];
        public int Result;
    }
}
